import request from '@/utils/request.js'

export function getAllFault(data){
  return request.post("/company-serv/fault/getAllFault", data);
}
export function getAllFaultById(maid){
  return request.get("/company-serv/fault/getAllFaultById/" + maid);
}
export function execute(url, data){
  return request.post("/company-serv" + url, data);
}
export function showAdd(){
  return request.get("/company-serv/fault/showAdd");
}
export function search(data){
  return request.post("/company-serv/fault/getAllFaultByFuzz", data);
}
export function getAllFaultByCascade(data){
  return request.post("/company-serv/fault/getAllFaultByCascade", data);
}
export function acceptFailure(data){
  return request.post("/company-serv/fault/acceptFailure", data);
}
export function cancelFailure(data){
  return request.post("/company-serv/fault/cancelFailure", data);
}

